package com.lovo.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.sys.bean.SupplyBean;
import com.lovo.sys.bean.SupplyProductBean;
import com.lovo.sys.vo.SupplyOrderInfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ISupplyMapper extends BaseMapper<SupplyBean> {
    //查询所有

    /**
     * 通过供货订单id查询订单详情
     * @param idNum 供货订单id
     * @return 订单对象
     */
    public List<SupplyOrderInfoVo> findById(String idNum);
    public SupplyOrderInfoVo findByIdNum(String idNum);

    public List<SupplyProductBean> findByOrderInfoId(String orderInfoId);

    public void tuiHuo(String idNum);
}
